package com.sgb.kjwl.model.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class SearchDeviceOutEntity {
    @SerializedName("id")
    private String id;
    @SerializedName("title")
    private String title;
    @SerializedName("district_name")
    private String city;
    @SerializedName("second_category_name")
    private String typeName;
    @SerializedName("price")
    private String price;
    @SerializedName("create_time")
    private String time;
    @SerializedName("pictures")
    private List<String> images;
    private String imgUrl;
    @SerializedName("unit_name")
    private String unitName;

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getImgUrl() {
        if (images != null && images.size() > 0) {
            imgUrl = images.get(0);
        }
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
}
